import { $t } from "@/plugins/i18n";
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/mall",
  component: Layout,
  meta: {
    icon: "ri:settings-3-line",
    title: $t("商城管理"),
    rank: 1,
    showLink: true
  },
  children: [
    {
      path: "/mall/goodsCategory/index",
      name: "GoodsCategory",
      component: () => import("@/views/mall/goods-category/index.vue"),
      meta: {
        icon: "ri:admin-line",
        title: $t("商品分类"),
        showLink: true
      }
    },
    {
      path: "/mall/goods/index",
      name: "Goods",
      component: () => import("@/views/mall/goods/index.vue"),
      meta: {
        icon: "ri:admin-fill",
        title: $t("商品管理"),
        showLink: true
      }
    },
    {
      path: "/banner/index",
      name: "BannerManagement",
      component: () => import("@/views/mall/banner/index.vue"),
      meta: {
        icon: "ri:image-2-line",
        title: $t("menus.pureBanner"),
        showLink: true
      }
    },
    {
      path: "/mall/order-management/index",
      name: "OrderManagement",
      component: () => import("@/views/mall/order-management/index.vue"),
      meta: {
        icon: "ri:file-list-3-line",
        title: $t("订单管理"),
        showLink: true
      }
    }
  ]
} satisfies RouteConfigsTable;
